<%@ page language="java"  pageEncoding="UTF-8" %>
<!--左侧导航开始-->
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span>Coca-Cola</span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">${usercontext.system_user_nick}</strong></span>
                                <span class="text-muted text-xs block">${usercontext.role_name}<b class="caret"></b></span>
                                </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <%--<li><a class="J_menuItem" href="mailbox.html">信箱</a>--%>
                        <%--</li>--%>
                        <li class="divider"></li>
                        <li><a href="${ctx}/loginOut.do">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">Cola
                </div>
            </li>
            <c:forEach var="pModule" items="${modules}">
                <li>
                    <a href="javascript:void(0)">
                        <i class="${pModule.parentModule.icon}"></i>
                        <span class="nav-label">${pModule.parentModule.module_name}</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <c:forEach var="cModule" items="${pModule.childModuleList}">
                            <li>
                                <a class="J_menuItem" href="${cModule.module_url}" data-index="0" >${cModule.module_name}</a>
                            </li>
                        </c:forEach>
                    </ul>
                </li>
            </c:forEach>
        </ul>
    </div>
</nav>
<!--左侧导航结束-->